﻿<ds:SlView
    x:Class="SmartSpace.UI.Silverlight.Themes.ScienceFiction.HeaderPanel"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
    xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit"
    xmlns:ds="clr-namespace:SmartSpace.UI.Silverlight;assembly=SmartSpace.UI.Silverlight"
    xmlns:my="clr-namespace:SmartSpace.UI.Silverlight.Themes.ScienceFiction"
    mc:Ignorable="d"
    d:DesignHeight="98" d:DesignWidth="1024">

    <Grid Background="{x:Null}">
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <Grid Grid.Row="0">
            <Image Grid.Column="0" Visibility="Collapsed"  Name="m_imgLogo" Width="48" Height="48" Margin="5"/>
            <TextBlock Grid.Column="1" Visibility="Collapsed" Name="m_textAppName" Text="Title!" VerticalAlignment="Center" FontSize="35" Foreground="#FF41418B" FontWeight="Bold" FontFamily="SimHei" FontStyle="Normal">
			<TextBlock.Effect>
				<DropShadowEffect Opacity="0.4" ShadowDepth="3"/>
			</TextBlock.Effect>
            </TextBlock>
            <Grid Grid.Row="0" HorizontalAlignment="Right">
            </Grid>

        </Grid>
        <Grid Grid.Row="1">
            <Grid.Background>
                <LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
                    <GradientStop Color="#3F003CFF" Offset="0" />
                    <GradientStop Color="#5F003AFF" Offset="0.5" />
                    <GradientStop Color="#9F003AFF" Offset="1" />
                </LinearGradientBrush>
            </Grid.Background>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="auto"/>
            </Grid.ColumnDefinitions>
            <StackPanel Name="m_stackPanelShortCuts" Margin="3,0,0,0" Grid.Column="0" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Left">

            </StackPanel>
            <StackPanel Margin="3,0,3,0" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Right">
                <TextBlock Name="m_textUserName" Foreground="White" Text="欢迎您:某某某!"  VerticalAlignment="Center"/>

                <StackPanel Orientation="Horizontal" VerticalAlignment="Center" Margin="0 0 5 0">
                    <TextBlock Text="切换至:" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="3,0,0,0" Foreground="White"/>
                    <ComboBox Name="m_comboBoxApps"  Margin="1" Height="21" Width="auto"  VerticalAlignment="Center" HorizontalAlignment="Right" SelectionChanged="OnComboBoxAppsSelectionChanged" DropDownOpened="OnComboBoxAppsDropDownOpened" DropDownClosed="OnComboBoxAppsDropDownClosed"/>
                </StackPanel>
                <StackPanel Orientation="Horizontal" VerticalAlignment="Center">
                    <Image Name="m_imageFullScreen" Cursor="Hand" Source="/SmartSpace.UI.Silverlight.Themes.ScienceFiction;component/Resources/fullscreen.PNG" Stretch="Uniform" HorizontalAlignment="Right" MouseLeftButtonDown="OnImageFullScreenMouseLeftButtonDown"/>
                    <HyperlinkButton Name="m_buttonFullScreen" Content="全屏显示" Foreground="White" VerticalAlignment="Center" IsTabStop="False" Margin="0,0,5,0" Click="OnButtonFullScreenClick"/>
                    <Image Name="m_imageLogout" Cursor="Hand" Source="/SmartSpace.UI.Silverlight.Themes.ScienceFiction;component/Resources/logout.PNG" Stretch="Uniform" HorizontalAlignment="Right" MouseLeftButtonDown="OnImageLogoutMouseLeftButtonDown" />
                    <HyperlinkButton Name="m_buttonLogoff" Content="注销" Foreground="White"  VerticalAlignment="Center" IsTabStop="False" Margin="0,0,5,0" Click="OnButtonLogOffClick" ></HyperlinkButton>
                </StackPanel>
            </StackPanel>
        </Grid>
    </Grid>
</ds:SlView>
